package com.mxx.common.websecurity;

import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

import java.lang.annotation.*;

/**
 * @Auther: Mr. Zeng
 * @Date: 2020/7/21 15:01
 * @Description: 开启管理员权限设置
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
@Import(WebSecurityStrategyConfiguration.class)
@EnableWebSecurity
public @interface EnableAdminSecurity {
    @AliasFor(
            annotation = EnableWebSecurity.class
    )
    boolean debug() default false;
}
